package com.mf.all.entity.req.user;

import java.io.Serial;

import com.mf.all.groups.GroupsAddInterface;
import com.mf.all.groups.GroupsUpdateInterface;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serializable;

/**
 * 权限表提交
 *
 * @date 2025-04-02 22:36:49
 */
@Data
public class ReqPermission implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;
    @NotNull(message = "id不能为空", groups = {GroupsUpdateInterface.class})
    private Integer id;
    @Schema(description = "权限名称")
    @NotBlank(message = "权限名称不能为空", groups = {GroupsUpdateInterface.class, GroupsAddInterface.class})
    private String permName;
    @Schema(description = "权限编码")
    @NotBlank(message = "权限编码不能为空", groups = {GroupsUpdateInterface.class, GroupsAddInterface.class})
    private String code;
    @Schema(description = "备注")

    private String remark;
    @Schema(description = "父级id")
    private Integer pid;
    @Schema(description = "排序")
    private Integer showOrder;
}
